import request from '/@/utils/request';

/**
 * 后端控制菜单模拟json

 */

/**
 * 获取后端动态路由菜单(admin)

 * @param params 要传的参数值，非必传
 * @returns 返回接口数据
 */

export function deleteDataItem(datasetId: String) {
    return request({
        url: '/api/system/dataset/delete/' + datasetId,
        method: 'delete',
    });
}

export function saveDataItem(keyValue: String, params: object) {screenX
    return request({
        url: '/api/system/dataset/save?keyValue=' + keyValue,
        method: 'post',
        data: params,
    });
}

export function getDataItemEntity(datasetId?: String) {
    return request({
        url: '/api/system/dataset/data/entity',
        method: 'get',
        params: { keyValue: datasetId }
    });
}